package com.melesta.payment.listeners;

import com.melesta.engine.EngineActivity;
import com.melesta.payment.interfaces.IListener;

public class NativeListener
  implements IListener
{
  public NativeListener()
  {
    EngineActivity localEngineActivity = EngineActivity.getInstance();
    if (localEngineActivity == null)
      return;
    localEngineActivity.runOnGLThread(new Runnable()
    {
      public void run()
      {
        NativeListener.access$000();
      }
    });
  }

  private static native void Init();

  private native void OnCancel(String paramString);

  private native void OnError(String paramString1, int paramInt, String paramString2);

  private native void OnPurchase(String paramString, int paramInt, long paramLong);

  private native void OnRefund(String paramString);

  private native void OnSent(String paramString);

  private native void UpdateSkuDetails(String paramString1, String paramString2, String paramString3);

  public void onCancel(final String paramString)
  {
    EngineActivity localEngineActivity = EngineActivity.getInstance();
    if (localEngineActivity == null)
      return;
    localEngineActivity.runOnGLThread(new Runnable()
    {
      public void run()
      {
        NativeListener.this.OnCancel(paramString);
      }
    });
  }

  public void onError(final String paramString1, final int paramInt, final String paramString2)
  {
    EngineActivity localEngineActivity = EngineActivity.getInstance();
    if (localEngineActivity == null)
      return;
    localEngineActivity.runOnGLThread(new Runnable()
    {
      public void run()
      {
        NativeListener.this.OnError(paramString1, paramInt, paramString2);
      }
    });
  }

  public void onPurchase(final String paramString, final int paramInt, final long paramLong)
  {
    EngineActivity localEngineActivity = EngineActivity.getInstance();
    if (localEngineActivity == null)
      return;
    localEngineActivity.runOnGLThread(new Runnable()
    {
      public void run()
      {
        NativeListener.this.OnPurchase(paramString, paramInt, paramLong);
      }
    });
  }

  public void onRefund(final String paramString)
  {
    EngineActivity localEngineActivity = EngineActivity.getInstance();
    if (localEngineActivity == null)
      return;
    localEngineActivity.runOnGLThread(new Runnable()
    {
      public void run()
      {
        NativeListener.this.OnRefund(paramString);
      }
    });
  }

  public void onSent(final String paramString)
  {
    EngineActivity localEngineActivity = EngineActivity.getInstance();
    if (localEngineActivity == null)
      return;
    localEngineActivity.runOnGLThread(new Runnable()
    {
      public void run()
      {
        NativeListener.this.OnSent(paramString);
      }
    });
  }

  public void updateSkuDetails(String paramString1, String paramString2, String paramString3)
  {
    UpdateSkuDetails(paramString1, paramString2, paramString3);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.melesta.payment.listeners.NativeListener
 * JD-Core Version:    0.6.2
 */